package com.drcoffee.drcoffeemall.mapper;

import com.drcoffee.drcoffeemall.entry.Machine;
import com.drcoffee.drcoffeemall.entry.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TypeMapper {

    List<Type> getTypeAll(String type_class);

    List<Type> getType(@Param("type_class") String type_class, @Param("bsh_two") Integer bsh_two);

//    Type getTypeById(@Param("id") Integer id, @Param("type_class") String type_class, @Param("bsh_two") Integer bsh_two);

    @Select("SELECT * FROM t_type WHERE id = #{type_id}")
    Type getTypeById(Integer type_id);

}
